﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DelonixRegiaHMSys.Core.Interfaces;
using DelonixRegiaHMSys.Core.Models;

namespace DelonixRegiaHMSys.Core.Services
{
    public class gpServices
    {
        private readonly IGuestParticularQuery _guestParticularQuery;
        public gpServices(IGuestParticularQuery guestParticularQuery)
        {
            _guestParticularQuery = guestParticularQuery;
        }
        public IEnumerable<GuestParticular> GetAll()
        {
            return _guestParticularQuery.GetAll();
        }

        public GuestParticular GetGuestbyID(string guestID)
        {
            return _guestParticularQuery.GetGuestbyID(guestID);
        }

        public void AddGuest(GuestParticular gp)
        {
            _guestParticularQuery.AddGuest(gp);
        }

        public void UpdateGuest(GuestParticular gp)
        {
            _guestParticularQuery.UpdateGuest(gp);
        }

        public void DeleteGuest(string guestID)
        {
            _guestParticularQuery.DeleteGuest(guestID);
        }

        public bool GuestExist(string guestID)
        {
            return _guestParticularQuery.GuestExist(guestID);
        }
    }
}
